#ifndef THREAD
#define THREAD
#include <QThread>
#include <QMutex>

class Thread:public QThread
{
    Q_OBJECT
public:
    Thread();
    char buf[128];
    char sendbuf[5];
    volatile bool stopped;
    volatile bool write_rs;
    volatile bool read_rs;
protected:
    virtual void run();
signals:
    void finished();
};
#endif // THREAD
